package com.geniusk.system.service.impl;

import com.geniusk.system.model.mapper.ModelPropertyMapper;
import com.geniusk.system.model.pojo.ModelProperty;
import com.geniusk.system.service.ModelPropertyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ModelPropertyServiceImpl implements ModelPropertyService {

    @Autowired
    private ModelPropertyMapper modelPropertyMapper;

    @Override
    public List<ModelProperty> selectModelPropertyByModelId(Long modelId) {
        return modelPropertyMapper.selectModelPropertyByModelId(modelId);
    }

    @Override
    public List<ModelProperty> selectModelPropertyByDeviceId(Long deviceId) {
        return modelPropertyMapper.selectModelPropertyByDeviceId(deviceId);
    }

    @Override
    public ModelProperty selectModelPropertyById(Long modelPropertyId) {
        return modelPropertyMapper.selectModelPropertyById(modelPropertyId);
    }

    @Override
    public int insertModelProperty(ModelProperty modelProperty) {
        return modelPropertyMapper.insertModelProperty(modelProperty);
    }

    @Override
    public int updateModelProperty(ModelProperty modelProperty) {
        return modelPropertyMapper.updateModelProperty(modelProperty);
    }

    @Override
    public int deleteModelPropertyByIds(Long[] ids) {
        return modelPropertyMapper.deleteModelPropertyByIds(ids);
    }
}
